/**
 * @description: 全局组件
 * @author: lxz
 * @update: lxz(2021-01-18)
 */

// element ui组件
import elementInit from './element'

// 数字自增长
// import VueAnimateNumber from 'vue-animate-number'
// 页码
import Pagination from '@/components/common/Pagination'
import Map from '@/components/common/Map'
import TitleCard from '@/components/common/TitleCard'
// svg图标
import SvgIcon from '@/components/common/SvgIcon'
// echart组件
import LineCharts from '@/components/common/Charts/Line.vue'
import CircleCharts from '@/components/common/Charts/Circle.vue'
// 子组件
import AddSort from '@/components/work/addSort'
import BimPreview from '@/components/work/BimPreview'
// OssUpload组件
import OssUpload from '@/components/common/ossUpload/index'

// 组件列表
const componentList = {
	Pagination,
	TitleCard,
	SvgIcon,
	AddSort,
	BimPreview,
	Map,
	LineCharts,
	CircleCharts,
	OssUpload
}
// 导出初始化方法
export default vue => {
	elementInit(vue)
	// vue.use(VueAnimateNumber)
	// 全局组件初始化
	Object.keys(componentList).forEach(v => {
		vue.component(v, componentList[v])
	})
}
